<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<div class="post">
<h2 class="title"><fmt:message key="locanet.copiaFilme.cadastro.titulo"/></h2>
<form action="copiaFilme@insert.action" method="post">
<table>
	<tr id="trCodigoCopiaFilme">
		<td><fmt:message key="locanet.Filme.codigo"/><span style="color: red"> *</span></td>
		<td><input onblur="validateCopiaFilmeCodigo(getById('trCodigoCopiaFilme'),this.value,'')" maxlength="100" type="text" name="entity.codigo"
			value="<c:out value="${param['entity.codigo']}"/>" /></td>
	</tr>
	<tr title="Filme">
		<td><fmt:message key="locanet.Filme.filme"/><span style="color: red"> *</span></td>
		<td><select name="entity.filme.id">
			<option></option>
			<c:forEach items="${requestScope.filmes}" var="filme">
				<option value="${filme.id}"
					<c:out value="${ (!empty param['entity.filme.id'])&&param['entity.filme.id']==filme.id?'selected':'' }" />><c:out
					value="${filme.titulo}" /></option>
			</c:forEach>
		</select></td>
	</tr>
	<tr>
		<td><input type="submit" value="<fmt:message key="locanet.butoes.cadastrar"/>"></td>
		<td><a href="copiaFilme@select.action"><fmt:message key="locanet.butoes.voltar" /></a></td>
	</tr>
</table>
</form>
</div>